var Animal=function(){
    this.address='earth'
    this.sound=function(){
        console.log('hohoho');
    }
}
var animal = new Animal()
var cloneAnimal=Object.create(animal)
console.log(cloneAnimal);
console.log(Object.getOwnPropertyNames(cloneAnimal));//[]

//基本类型
console.log(cloneAnimal.address);//earth
animal.address='moon'
console.log(animal.address);//moon

//引用类型
cloneAnimal.sound()//hohoho
cloneAnimal.sound=function(){console.log('abcd');}
animal.sound()//hohoho




